package com.itheima.demo1;

import java.util.Scanner;

public class Scanner2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个三位数!");
        int i = sc.nextInt();
        int a= i/100;
        int b=i/10%10;
        int c=i%10;
        System.out.println("百位是"+a+'\n'+"十位是"+b+'\n'+"个位是"+c);
    }
}
